package cn.yunhe.dplayerdemo3.mapper;

import cn.yunhe.dplayerdemo3.entity.Great;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import org.springframework.stereotype.Repository;

@Repository
@Mapper
public interface IGreatDao extends BaseMapper<Great> {

    //根据视频id 和用户uid 查看 great 表 是否有记录
     Great queryGreat(Great great);
     //点赞
     int addLike(Great great);
     //取消点赞
     int delLike(Great great);
}
